package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLGraphics;
import HLLib.ui.HLUI;

public class HLClassUI extends HLLibClass {
    public HLClassUI(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLUI();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                ((HLUI) self).PreviousCurFrame();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).PreviousCurFrame());
            }
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                ((HLUI) self).PreviousCurFrameEx(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).PreviousCurFrameEx(args.GetInt(0)));
            }
            break;
        }
        case 2: {
            ((HLUI) self).PreviousCurFrameCyc();
            break;
        }
        case 3: {
            ((HLUI) self).PreviousCurFrameCycEx(args.GetInt(0), args.GetInt(1));
            break;
        }
        case 4: {
            if (resultOwnerObject == null) {
                ((HLUI) self).NextCurFrame();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).NextCurFrame());
            }
            break;
        }
        case 5: {
            if (resultOwnerObject == null) {
                ((HLUI) self).NextCurFrameEx(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).NextCurFrameEx(args.GetInt(0)));
            }
            break;
        }
        case 6: {
            ((HLUI) self).NextCurFrameCycEx(args.GetInt(0), args.GetInt(1));
            break;
        }
        case 7: {
            ((HLUI) self).NextCurFrameCyc();
            break;
        }
        case 8: {
            if (resultOwnerObject == null) {
                ((HLUI) self).IsCurFrameEnd();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).IsCurFrameEnd());
            }
            break;
        }
        case 9: {
            ((HLUI) self).SetFrameOfNext(args.GetInt(0));
            break;
        }
        case 10: {
            ((HLUI) self).KeepCurAnimateFrameOfNext();
            break;
        }
        case 11: {
            if (resultOwnerObject == null) {
                ((HLUI) self).PreviousNextFrame();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).PreviousNextFrame());
            }
            break;
        }
        case 12: {
            if (resultOwnerObject == null) {
                ((HLUI) self).PreviousNextFrameEX(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).PreviousNextFrameEX(args.GetInt(0)));
            }
            break;
        }
        case 13: {
            ((HLUI) self).PreviousNextFrameCyc();
            break;
        }
        case 14: {
            ((HLUI) self).PreviousNextFrameCycEX(args.GetInt(0), args.GetInt(1));
            break;
        }
        case 15: {
            if (resultOwnerObject == null) {
                ((HLUI) self).NextNextFrame();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).NextNextFrame());
            }
            break;
        }
        case 16: {
            if (resultOwnerObject == null) {
                ((HLUI) self).NextNextFrameEX(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUI) self).NextNextFrameEX(args.GetInt(0)));
            }
            break;
        }
        case 17: {
            ((HLUI) self).NextNextFrameCyc();
            break;
        }
        case 18: {
            ((HLUI) self).NextNextFrameCycEX(args.GetInt(0), args.GetInt(1));
            break;
        }
        case 19: {
            if (resultOwnerObject == null) {
                ((HLUI) self).CurFrame();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUI) self).CurFrame());
            }
            break;
        }
        case 20: {
            ((HLUI) self).SetRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            break;
        }
        case 21: {
            ((HLUI) self).SetSizeByCurFrame();
            break;
        }
        case 22: {
            if (resultOwnerObject == null) {
                ((HLUI) self).GetControl(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUI) self).GetControl(args.GetInt(0)));
            }
            break;
        }
        case 23: {
            if (resultOwnerObject == null) {
                ((HLUI) self).GetArea(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUI) self).GetArea(args.GetInt(0)));
            }
            break;
        }
        case 24: {
            if (resultOwnerObject == null) {
                ((HLUI) self).FindControl(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUI) self).FindControl(args.GetInt(0)));
            }
            break;
        }
        case 25: {
            if (resultOwnerObject == null) {
                ((HLUI) self).FindControlArea(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUI) self).FindControlArea(args.GetInt(0)));
            }
            break;
        }
        case 26: {
            if (resultOwnerObject == null) {
                ((HLUI) self).Logic();
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLUI) self).Logic());
            }
            break;
        }
        case 27: {
            ((HLUI) self).Render((HLGraphics)args.GetObject(0));
            break;
        }
        case 28: {
            ((HLUI) self).RenderEX((HLGraphics)args.GetObject(0), args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4));
            break;
        }
        case 29: {
            if (resultOwnerObject == null) {
                ((HLUI) self).LogicWithClip(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLUI) self).LogicWithClip(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 30: {
            if (resultOwnerObject == null) {
                ((HLUI) self).Clone();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUI) self).Clone());
            }
            break;
        }
        }
    }
}
